/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2021-11-01 13:48:26
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-18 16:39:20
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/findpwd'
  },
  {
    path: '/forgetpwd',
    name: 'forgetpwd',
    meta: { title: 'forgetpwd' },
    component: () => import('@/views/index/pages/forgetpwd')
  },
  {
    path: '/findpwd',
    name: 'findpwd',
    meta: { title: '密码找回' },
    component: () => import('@/views/index/pages/findpwd')
  }
]

console.log(process.env.BASE_URL)

const router = new VueRouter({
  mode: 'history',
  base: '/index',
  routes
})

export default router
